package cn.bdqn.mapper;

import cn.bdqn.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {
    List<Student> findAll(@Param("offset") Integer offset, @Param("rows") Integer rows,@Param("name") String name,@Param("address") String address);

    int countStudent(@Param("name") String name,@Param("address") String address);

    void addStudent(Student student);

    void removeStudent(Integer id);

    Student getStudentById(Integer id);

    void updateStudent(Student student);
}
